package slu.appli.wodtimer;

public class DataContext {
	private long elapse = 0;
	
	public long convert(String value) {
		return Long.parseLong(value) * 1000;
	}
	
	public long addToElapse(long elapse) {
		return (this.elapse += elapse);
	}

	public long consumeElapse() {
		long result = this.elapse;
		this.elapse = 0;
		return result;
	}

	public long getElapse() {
		return elapse;
	}

	public void setElapse(long elapse) {
		this.elapse = elapse;
	}
	
}
